package com.springcloud.controller;

import com.springcloud.message.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author @1998
 * @date 2021-10-28 1014
 * @description null
 */
@RestController
@RequestMapping("/send")
public class ProducerController {
    @Autowired
    private SendService sendService;

    @RequestMapping("/{msg}")
    public void send(@PathVariable("msg")String msg){
        sendService.sendMessage(msg);
    }
}
